import Vue from 'vue'
import VueI18n from 'vue-i18n'
import zhCN from './locales/zh-CN'
import en from './locales/en'

Vue.use(VueI18n)

const savedLang = localStorage.getItem('lang')

export default new VueI18n({
  locale: savedLang || 'zh-CN',
  fallbackLocale: 'zh-CN',
  messages: {
    'zh-CN': zhCN,
    'en': en
  }
})


